/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.smarttmt.smartmanager.model;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import org.smarttmt.smartmanager.entity.Causrequ;
import org.smarttmt.smartmanager.entity.Objeprod;

/**
 *
 * @author nicolas
 */
public class SolucionM {
    private Integer solucodi;
    private String solutipo;
    private Integer solurequ;
    private String soluprob;
    private String solusolu;
    private String soluobse;
    private String solupeso;
    private Date solufeso;
    private Date solufesi;
    private String soluterm;
    private String soluesta;
    private BigInteger solucoay;
    private String soluclie;
    private String solupere;
    private String soluconf;
    private String solumeco;
    private String soluclas;
    private String soluarch;
    private Short soluprio;
    private String solusoli;
    private String solucicl;
    private Date solufecc;
    private String soludigi;
    private String solupers;
    private String soludevo;
    private Date solufede;
    private String soludede;
    private Short solucali;
    private BigDecimal soluporc;
    private BigInteger soluvweb;
    private Objeprod objeprod;
    private Causrequ solucade;

    public SolucionM() {
    }

    public SolucionM(Integer solucodi) {
        this.solucodi = solucodi;
    }

    public SolucionM(Integer solucodi, String soluprob, String solusolu, String solupeso, String soluesta, BigInteger solucoay, String solumeco) {
        this.solucodi = solucodi;
        this.soluprob = soluprob;
        this.solusolu = solusolu;
        this.solupeso = solupeso;
        this.soluesta = soluesta;
        this.solucoay = solucoay;
        this.solumeco = solumeco;
    }

    public Integer getSolucodi() {
        return solucodi;
    }

    public void setSolucodi(Integer solucodi) {
        this.solucodi = solucodi;
    }

    public String getSolutipo() {
        return solutipo;
    }

    public void setSolutipo(String solutipo) {
        this.solutipo = solutipo;
    }

    public Integer getSolurequ() {
        return solurequ;
    }

    public void setSolurequ(Integer solurequ) {
        this.solurequ = solurequ;
    }

    public String getSoluprob() {
        return soluprob;
    }

    public void setSoluprob(String soluprob) {
        this.soluprob = soluprob;
    }

    public String getSolusolu() {
        return solusolu;
    }

    public void setSolusolu(String solusolu) {
        this.solusolu = solusolu;
    }

    public String getSoluobse() {
        return soluobse;
    }

    public void setSoluobse(String soluobse) {
        this.soluobse = soluobse;
    }

    public String getSolupeso() {
        return solupeso;
    }

    public void setSolupeso(String solupeso) {
        this.solupeso = solupeso;
    }

    public Date getSolufeso() {
        return solufeso;
    }

    public void setSolufeso(Date solufeso) {
        this.solufeso = solufeso;
    }

    public Date getSolufesi() {
        return solufesi;
    }

    public void setSolufesi(Date solufesi) {
        this.solufesi = solufesi;
    }

    public String getSoluterm() {
        return soluterm;
    }

    public void setSoluterm(String soluterm) {
        this.soluterm = soluterm;
    }

    public String getSoluesta() {
        return soluesta;
    }

    public void setSoluesta(String soluesta) {
        this.soluesta = soluesta;
    }

    public BigInteger getSolucoay() {
        return solucoay;
    }

    public void setSolucoay(BigInteger solucoay) {
        this.solucoay = solucoay;
    }

    public String getSoluclie() {
        return soluclie;
    }

    public void setSoluclie(String soluclie) {
        this.soluclie = soluclie;
    }

    public String getSolupere() {
        return solupere;
    }

    public void setSolupere(String solupere) {
        this.solupere = solupere;
    }

    public String getSoluconf() {
        return soluconf;
    }

    public void setSoluconf(String soluconf) {
        this.soluconf = soluconf;
    }

    public String getSolumeco() {
        return solumeco;
    }

    public void setSolumeco(String solumeco) {
        this.solumeco = solumeco;
    }

    public String getSoluclas() {
        return soluclas;
    }

    public void setSoluclas(String soluclas) {
        this.soluclas = soluclas;
    }

    public String getSoluarch() {
        return soluarch;
    }

    public void setSoluarch(String soluarch) {
        this.soluarch = soluarch;
    }

    public Short getSoluprio() {
        return soluprio;
    }

    public void setSoluprio(Short soluprio) {
        this.soluprio = soluprio;
    }

    public String getSolusoli() {
        return solusoli;
    }

    public void setSolusoli(String solusoli) {
        this.solusoli = solusoli;
    }

    public String getSolucicl() {
        return solucicl;
    }

    public void setSolucicl(String solucicl) {
        this.solucicl = solucicl;
    }

    public Date getSolufecc() {
        return solufecc;
    }

    public void setSolufecc(Date solufecc) {
        this.solufecc = solufecc;
    }

    public String getSoludigi() {
        return soludigi;
    }

    public void setSoludigi(String soludigi) {
        this.soludigi = soludigi;
    }

    public String getSolupers() {
        return solupers;
    }

    public void setSolupers(String solupers) {
        this.solupers = solupers;
    }

    public String getSoludevo() {
        return soludevo;
    }

    public void setSoludevo(String soludevo) {
        this.soludevo = soludevo;
    }

    public Date getSolufede() {
        return solufede;
    }

    public void setSolufede(Date solufede) {
        this.solufede = solufede;
    }

    public String getSoludede() {
        return soludede;
    }

    public void setSoludede(String soludede) {
        this.soludede = soludede;
    }

    public Short getSolucali() {
        return solucali;
    }

    public void setSolucali(Short solucali) {
        this.solucali = solucali;
    }

    public BigDecimal getSoluporc() {
        return soluporc;
    }

    public void setSoluporc(BigDecimal soluporc) {
        this.soluporc = soluporc;
    }

    public BigInteger getSoluvweb() {
        return soluvweb;
    }

    public void setSoluvweb(BigInteger soluvweb) {
        this.soluvweb = soluvweb;
    }

    public Objeprod getObjeprod() {
        return objeprod;
    }

    public void setObjeprod(Objeprod objeprod) {
        this.objeprod = objeprod;
    }

    public Causrequ getSolucade() {
        return solucade;
    }

    public void setSolucade(Causrequ solucade) {
        this.solucade = solucade;
    }

    @Override
    public String toString() {
        return "SolucionM{" + "solucodi=" + solucodi + ", solutipo=" + solutipo + ", solurequ=" + solurequ + ", soluprob=" + soluprob + ", solusolu=" + solusolu + ", soluobse=" + soluobse + ", solupeso=" + solupeso + ", solufeso=" + solufeso + ", solufesi=" + solufesi + ", soluterm=" + soluterm + ", soluesta=" + soluesta + ", solucoay=" + solucoay + ", soluclie=" + soluclie + ", solupere=" + solupere + ", soluconf=" + soluconf + ", solumeco=" + solumeco + ", soluclas=" + soluclas + ", soluarch=" + soluarch + ", soluprio=" + soluprio + ", solusoli=" + solusoli + ", solucicl=" + solucicl + ", solufecc=" + solufecc + ", soludigi=" + soludigi + ", solupers=" + solupers + ", soludevo=" + soludevo + ", solufede=" + solufede + ", soludede=" + soludede + ", solucali=" + solucali + ", soluporc=" + soluporc + ", soluvweb=" + soluvweb + ", objeprod=" + objeprod + ", solucade=" + solucade + '}';
    }
    
    public boolean solucionMapped(org.smarttmt.smartmanager.entity.Solucion solucion){
        try {
            setObjeprod(solucion.getObjeprod());
            setSoluarch(solucion.getSoluarch());
            setSolucade(solucion.getSolucade());
            setSolucali(solucion.getSolucali());
            setSolucicl(solucion.getSolucicl());
            setSoluclas(solucion.getSoluclas());
            setSoluclie(solucion.getSoluclie());
            setSolucoay(solucion.getSolucoay());
            setSolucodi(solucion.getSolucodi());
            setSoluconf(solucion.getSoluconf());
            setSoludede(solucion.getSoludede());
            setSoludevo(solucion.getSoludevo());
            setSoludigi(solucion.getSoludigi());
            setSoluesta(solucion.getSoluesta());
            setSolufecc(solucion.getSolufecc());
            setSolufede(solucion.getSolufede());
            setSolufesi(solucion.getSolufesi());
            setSolufeso(solucion.getSolufeso());
            setSolumeco(solucion.getSolumeco());
            setSolurequ(solucion.getSolurequ());
            setSoluprob(solucion.getSoluprob());
            return true;
        } catch (Exception e) {
            return false;
        }
    }

}
